package com.yang.yangCommand;

import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;

/**
 * 退出队伍
 * @author zhaoyang
 * @author QQ邮箱: 2655906529@qq.com
 * @author QQ:2655906529
 * @author WX:C2655906529
 * @author zhaoyangweb.com
 * @author aixiaoyao.com
 */
public class ExitRankController implements CommandExecutor {
    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        //执行指令
        if(!label.equalsIgnoreCase("createRank")){
            return true;
        }
        if (args.length == 0){
            return true;
        }
        // 判断是否是玩家执行
        if (!(sender instanceof Player)) {
            return true;
        }
        // 获取创建团队的玩家名字
        String name = sender.getName();
        // 拿到团队名字
        String rankName = args[0];
        return false;
    }
}
